package com.casi.project.portal.service.impl;


import com.casi.common.utils.DateUtils;
import com.casi.project.portal.domain.MobileNotice;
import com.casi.project.portal.mapper.NoticeMapper;
import com.casi.project.portal.service.NoticeService;
import com.casi.project.portal.vo.NoticeVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Resource
    private NoticeMapper noticeMapper;

    @Override
    public ArrayList<NoticeVO> getNoticeList() {
        ArrayList<NoticeVO> noticeList = noticeMapper.getNoticeList();
        return noticeList;
    }
    @Override
    public NoticeVO getNoticeId(MobileNotice mobileNotice) {
        NoticeVO noticeVo = noticeMapper.getNoticeId(mobileNotice);
//        mobileNotice1.setPushTime(DateUtils.parseDate(mobileNotice1.getPushTime()));
        return  noticeVo;
    }
}
